#include "LoginRequest.h"


LoginReqReader::LoginReqReader(void)
{
}


LoginReqReader::~LoginReqReader(void)
{
}

int LoginReqReader::read(CommRequest& userLogin)
{
	UserLoginReq& userReq = static_cast<UserLoginReq&>(userLogin);
	TiXmlElement* pChild = m_pRootEle->FirstChildElement("RequestInfo");
	const char* strType = pChild->Attribute("querytype");
	TiXmlElement* pChild2 = pChild->FirstChildElement("AuthenticateInfo");

	userReq.uid = pChild2->Attribute("uid");
	userReq.passwd = pChild2->Attribute("password");
	pChild2->Attribute("type",&userReq.type);

	return 0;
}



LoginReqWriter::LoginReqWriter(void)
{
}


LoginReqWriter::~LoginReqWriter(void)
{
}
